const petFiltrate = {
  namespaced: true,
  state() {
    return {
      //种类
      category: [
        { category_id: 0, pet_type: "全部" },
        { category_id: 1, pet_type: "狗" },
        { category_id: 2, pet_type: "猫" },
        { category_id: 3, pet_type: "鱼" },
      ],
      //种类值pet_type
      kind: "",
      //种类id
      categoryId: 0,
      //品种
      variety: "全部",
    };
  },
  mutations: {
    //选择种类
    handleKind(state, value) {
      state.kind = value;
    },
    //选择种类
    handleCategoryId(state, value) {
      state.categoryId = value;
    },
    //选择品种
    handleVariety(state, value) {
      state.variety = value;
    },
  },
};
export default petFiltrate;
